package test4.p5;

public class Zoo {
    public void free(Animal animal) {// 放生方法
        animal.move();
    }
    public static void main(String[] args) {
        Zoo zoo = new Zoo();
        Parrot parrot = new Parrot();
        Tortoise tortoise = new Tortoise();
        zoo.free(parrot);
        zoo.free(tortoise);
    }
}
